import request from "@/utils/request";

// 查询分配记录列表
export function listBizShareLog(query) {
  return request({
    url: "/biz/bizShareLog/list",
    method: "get",
    params: query,
  });
}

// 查询分配记录详细
export function getBizShareLog(id) {
  return request({
    url: "/biz/bizShareLog/" + id,
    method: "get",
  });
}

// 新增分配记录
export function addBizShareLog(data) {
  return request({
    url: "/biz/bizShareLog",
    method: "post",
    data: data,
  });
}

// 修改分配记录
export function updateBizShareLog(data) {
  return request({
    url: "/biz/bizShareLog",
    method: "put",
    data: data,
  });
}

// 删除分配记录
export function delBizShareLog(id) {
  return request({
    url: "/biz/bizShareLog/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizShareLog/findMaxSort",
    method: "get",
  });
}
// 导出分配记录
export function exportBizShareLog(query) {
  return request({
    url: "/biz/bizShareLog/export",
    method: "get",
    params: query,
  });
}
